/*******************************************************************************
*  file    : qloggerobjectappender.cpp
*  created : 22.11.2011
*  author  : Slyshyk Oleksiy (alex312@meta.ua)
*******************************************************************************/

#include "qloggerobjectappender.hpp"

QLoggerObjectAppender::QLoggerObjectAppender (int level, const QString &format,
                                              const QString& time_format):
    QObject(),QLoggerAppender(format,level, time_format)
{

}

void QLoggerObjectAppender::write (const QLoggerEvent &event)
{
    QString str;
    QTextStream out(&str);
    streamWrite(out, event);
    emit logStr(str);
}
